<select name="doc_are_id2" <?php echo $estilo;?>>
    
    <option value="">Área de Atuação</option>

    <?php
	
    $sql_doc_are_id = "SELECT * FROM docarea WHERE sta_id='1' ORDER BY doc_are_id2,doc_are_nome";
    $res_doc_are_id = sql($sql_doc_are_id);

    while($linha_doc_are_id = mysql_fetch_array($res_doc_are_id)){
        
        if ($linha_doc_are_id['doc_are_id2'] > 0){
            $sql_doc_are_id2 = "SELECT doc_are_nome FROM docarea WHERE doc_are_id='{$linha_doc_are_id['doc_are_id2']}'";
            $res_doc_are_id2 = sql($sql_doc_are_id2);
            $linha_doc_are_id2 = mysql_fetch_array($res_doc_are_id2);
            $pai = "&nbsp;&nbsp;( {$linha_doc_are_id2['doc_are_nome']} )";
        } else {
            $pai = "";
        }
    ?>

    <option value="<?=$linha_doc_are_id['doc_are_id'];?>" <?php if($linha_doc_are_id['doc_are_id'] == $doc_are_id2) { echo "selected"; } ?>><?=$linha_doc_are_id['doc_are_nome'].$pai;?></option>

    <?php } ?>

</select>